package com.yuanqi.Controller;



import com.yuanqi.Common.Pojo.entity.Update;
import com.yuanqi.Return.Result;
import com.yuanqi.Service.UpdateService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Update)表控制层
 *
 * @author makejava
 * @since 2024-10-30 08:36:55
 */
@RestController
@RequestMapping("/v1/update")
public class UpdateController {

    @Resource
    UpdateService updateService;
    @PostMapping("/check")
    public Result check(@RequestBody Update update){
       Update update1 =  updateService.check(update);
        return Result.success(update1);
    }
}

